package com.spsoft.vatoutinv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spsoft.vatoutinv.entity.vmsavalibletaxrate.VmsAvalibleTaxRateLogBase;
import com.spsoft.vatoutinv.model.dto.vmsavalibletaxrate.VmsAvalibleTaxRateLogBaseDto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 可用税率信息查询记录-主表 Mapper 接口
 * </p>
 *
 * @author chenxudong
 * @since 2023-11-23
 */
public interface VmsAvalibleTaxRateLogBaseMapper extends BaseMapper<VmsAvalibleTaxRateLogBase> {

    @Select("SELECT SEQ_VMS_AVALIBLE_LOG_BASE.NEXTVAL FROM DUAL")
    Long getNextSequenceValue();

    /**
     * 查询可用税率信息获取记录
     */
    IPage<VmsAvalibleTaxRateLogBase> queryVmsAvalibleTaxRateLog(Page<VmsAvalibleTaxRateLogBase> page, @Param("avalibleTaxRateLogDto") VmsAvalibleTaxRateLogBaseDto vmsAvalibleTaxRateLogBaseDto);
}
